package com.operation.service;

import com.operation.beans.Result;
import com.operation.beans.TimeAndPeople;
import com.operation.beans.WorkOrderAllInfo;
import com.operation.entity.HandleInfo;
import com.operation.entity.UserInfo;
import com.operation.entity.WorkOrder;

import java.util.List;

/**
 * Created by LCJ on 2017/10/24.
 */
public interface OperationService {

    /**
     * 运维接单
     * @return
     */
    public Result receiveWorkOrder(WorkOrder workOrder);

    /**
     * 运维甩单
     * @return
     */
    public Result throwWorkOrder(HandleInfo handleInfo);

    /**
     * 运维处理完工单
     * @return
     */
    public Result AccomplishTask(WorkOrder workOrder);

    /**
     * 运维查看自己已经和未完成任务，
     * @return
     */
    public Result IsOngoingTasks(HandleInfo handleInfo);

    /**
     * 运维查看自己所有的单
     * @return
     */
    public Result queryMyAllWorkOrder(Integer receiveOne);

    /**
     * 运维查看自己的业绩
     * @return
     */
    public Result countWorkOrder(TimeAndPeople timeAndPeople);

    /**
     * 运维查看自己未处理的单
     * @param receiveOne
     * @return
     */
    public List<WorkOrderAllInfo> isOnGoingWorkOrder(Integer receiveOne);
}
